package zhihui.mobile.ui.shop;

import android.os.Handler;

import java.util.List;

import zhihui.mobile.bean.shop.BannerInfo;
import zhihui.mobile.bean.shop.SpuInfo;
import zhihui.mobile.bean.shop.sales.SalesInfo;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/7/21 0021.
 */

public interface IShopMainContract
{
    interface IShopMainView extends IView
    {
        void searchRequestFocus();

        void updateBanner(List<BannerInfo> list);

        void updateQgSales(SalesInfo salesInfo);

        void updateMsSales(SalesInfo salesInfo);

        void updateGroup(List<BannerInfo> list);

        void updateTopic(List<BannerInfo> list);

        void updateRecommend(List<SpuInfo> list);

        void clearRecommend();

        void refreshComplete();

        void goShopListActivity(int type);

        void updateCartNum(int num);
    }

    interface IShopMainPresenter extends IPresenter
    {
        void initView();

        void search(String text);

        void refreshRecommend();

        void goShopListByCategory(String categoryId);

        void goShopCategoryActivity();

        /**
         * 活动界面
         * @param type  1抢购 2秒杀
         */
        void goSalesActivity(int type);
    }
}
